package com.wc.AlgoOJ_homework.AlgoOJ_HomeWork1.J_ASC;

import java.util.Scanner;

/**
 * @Author congge
 * @Date 2024/1/20 14:54
 * @description
 * http://43.138.190.70:8888/p/634
 */
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while (t-- > 0){
            int x = sc.next().charAt(0);
            System.out.println(x);
        }
    }
}
